package com.qingyun.video.service.impl;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qingyun.model.video.pojos.VideoChannel;
import com.qingyun.video.mapper.VideoChannelMapper;
import com.qingyun.video.service.VideoChannelService;
import org.springframework.stereotype.Service;
import utils.common.PageUtils;
import utils.common.Query;

import java.util.Map;

@Service
public class VideoChannelServiceImpl extends ServiceImpl<VideoChannelMapper, VideoChannel> implements VideoChannelService {
    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<VideoChannel> page = this.page(
                new Query<VideoChannel>().getPage(params),
                new QueryWrapper<VideoChannel>()
        );

        return new PageUtils(page);
    }


}


